package com.xyh;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

import java.util.Scanner;

@SpringBootApplication
@EnableEurekaServer
public class Application {
    public static void main(String[] args){
       // SpringApplication.run(Application.class,args);
        Scanner scan=new Scanner(System.in);
        String profiles=scan.nextLine();
        new SpringApplicationBuilder(Application.class).profiles(profiles).run(args);
    }
}
